package ru.michaeltyan.familyconnector.businessobjects;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import ru.michaeltyan.familyconnector.beans.Foodstuff;
import ru.michaeltyan.familyconnector.beans.FoodstuffList;
import ru.michaeltyan.familyconnector.cache.Cache;

public interface FoodstuffManagerBusinessObject {
	List<Foodstuff> findAll();

	List<FoodstuffList> findLists();

	List<Foodstuff> findByList(FoodstuffList foodstuffList);

	List<Foodstuff> findByListWithCache(FoodstuffList foodstuffList) throws IOException, ClassNotFoundException, SQLException;

	void setCache(Cache cache);
}
